"""写出一段代码实现分组的一个list里面的元素比如[1,2,3,...100]
变成[[1,2,3],[4,5,6]...[100]]
"""
lst1 = [i for i in range(1,101)]
print(lst1)
print("-----------------------------")
lst2=lst1[0:3]
print(lst2)
lst = [lst1[i:i+3] for i in lst1]
print(lst)


